package com.person.mengshuai.mytestdemo.controller;


import com.person.mengshuai.mytestdemo.domain.response.Result;
import com.person.mengshuai.mytestdemo.entity.BUser;
import com.person.mengshuai.mytestdemo.service.BUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统管理-用户基础信息表 前端控制器
 * </p>
 *
 * @author ms
 * @since 2024-08-02
 */
@RestController
@RequestMapping("/b-user")
public class BUserController {
    @Autowired
    private BUserService bUserService;

    /**
     * 插入用户信息
     *
     * @param bUser 。
     * @return 插入结果
     */
    @PostMapping("/insertUser")
    public Result insertUser(@RequestBody BUser bUser) {
        return bUserService.insertUser(bUser);
    }
}
